﻿<UserControl 
    x:Class="CARE.InoculationPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="770" Height="530">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <Border BorderBrush="Black" BorderThickness="1" Grid.Row="0">
            <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="20">
				Patients List Generator Panel
            </TextBlock>
        </Border>

        <Border BorderBrush="Black" BorderThickness="1" Grid.Row="1">
            <Grid ShowGridLines="False">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="220" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Grid ShowGridLines="False" Grid.Column="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="80" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="50" />
                    </Grid.RowDefinitions>

                    <TextBlock TextAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap"
							Grid.Row="0" Margin="5,5,5,5">
						Choose a centrality measure, which you would like to use for generating the
						list of patients to inoculation.
                    </TextBlock>

                    <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Orientation="Vertical"
							Margin="5,5,5,5" Grid.Row="1">
                        <TextBlock>Centralities measures list:</TextBlock>
                        <ListBox Name="CentralitiesMeasures" Height="335" BorderThickness="5" BorderBrush="SteelBlue"
							SelectionChanged="CentralitiesMeasures_SelectionChanged" />
                    </StackPanel>

                    <Button Name="GeneratePatientsList" Content="Generate the patients list" Height="40"
						Click="GeneratePatientsList_Click" Grid.Row="2" Margin="5,0,5,0" />
                </Grid>

                <Border BorderBrush="Gray" BorderThickness="1" Grid.Column="1" Margin="5,5,5,5">
                    <Grid ShowGridLines="False">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>

                        <Grid Grid.Column="0">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="25" />
                                <RowDefinition Height="200" />
                                <RowDefinition Height="25" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>

                            <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="14"
								Grid.Row="0">
									Centrality measure description:
                            </TextBlock>
                            <Border BorderBrush="Black" BorderThickness="1" CornerRadius="5"
									Margin="5,5,5,5" Grid.Row="1">
                                <TextBlock Name="CentralityMeasureDescription" TextAlignment="Center" TextWrapping="Wrap"
									VerticalAlignment="Center" Margin="5,5,5,5">
                                </TextBlock>
                            </Border>

                            <Line StrokeThickness="2" Stroke="Gray" X1="0" X2="2000" Y1="200" Y2="200" Grid.Row="1" />
                            <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="14"
									Grid.Row="2">
								Patient details:
                            </TextBlock>
                            <Border BorderBrush="Gray" BorderThickness="2" Grid.Row="3">
                                <TextBlock Name="PatientDetails" TextAlignment="Left" Margin="5,5,5,5">
                                </TextBlock>
                            </Border>
                        </Grid>

                        <Line StrokeThickness="2" Stroke="Gray" X1="0" X2="0" Y1="0" Y2="2000" Grid.Column="1" />

                        <Grid Grid.Column="1">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="25" />
                                <RowDefinition Height="80" />
                                <RowDefinition Height="25" />
                                <RowDefinition Height="*" />
                            </Grid.RowDefinitions>

                            <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="14"
								Grid.Row="0">
									Setup:
                            </TextBlock>

                            <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical"
									Margin="5,5,5,5" Grid.Row="1" >
                                <TextBlock>
									How many vaccines do you have?
                                </TextBlock>
                                <TextBox Name="VaccinesCount" Width="100" Margin="0,15,0,0" Text="0" TextAlignment="Right">
                                </TextBox>
                            </StackPanel>

                            <Line StrokeThickness="2" Stroke="Gray" X1="0" X2="2000" Y1="80" Y2="80" Grid.Row="1" />
                            <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="14"
									Grid.Row="2">
								Patients list:
                            </TextBlock>
                            <ListBox Name="PatientsList" Height="350" BorderThickness="2" BorderBrush="Gray"
								SelectionChanged="PatientsList_SelectionChanged" Grid.Row="3" />
                        </Grid>
                    </Grid>
                </Border>
            </Grid>
        </Border>
    </Grid>
    
</UserControl>
